export function to(PA) {
  const PB = PA.then(res => {
    return [null, res]
  }).catch(err => {
    return [err, null]
  })
  return PB
}
